package com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel;

import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel.Model.AcerBuilder;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel.Model.DellBuilder;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel.Model.Director;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel.Model.Product;
import com.example.hangzhou.welbeing.mytestdemoapp.designPatterns.CreateModel.inter.Builder_01;

/**
 * 杭州惟君医疗科技有限公司09
 * Created by 20433 on 2018/5/22
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public  class Client {
    private static Builder_01 acerBuilder = new AcerBuilder();
    private static Builder_01 dellBuilder = new DellBuilder();

    public static void main(String[] args){

        Director director = new Director(acerBuilder);
        director.construct();

        Product product = acerBuilder.getFinalResult();
        product.show();

        director = new Director(dellBuilder);
        director.construct();

        product = dellBuilder.getFinalResult();
        product.show();
    }
}
